<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<jsp:include flush="true" page="../header.jsp"></jsp:include>

<!-- TinyMCE -->
<script type="text/javascript" src="../tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>

<div id="main">

	<div class="t3">
		<table cellspacing="0" cellpadding="0" width="100%" align="center">
			<tr>
				<td style="padding-top: 12px; text-align: left;">
					<img src="images/yellow/index/home.gif"  />
					<b> <s:url action="list_category" id="url">
							<s:param name="category.id">${ board.category.id }</s:param>
						</s:url> <a href="${url }">${ board.category.name }</a> &raquo; <s:url
							action="list_board" id="url">
							<s:param name="board.id">${ board.id }</s:param>
						</s:url> <a href="${ url }">${ board.name }</a> &raquo; 回复 <s:url
							action="list_thread" id="url">
							<s:param name="thread.id">${ thread.id }</s:param>
						</s:url> <a href="${url }">${ thread.title }</a> </b>
				</td>
			</tr>
		</table>
		<br />
	</div>

	<div class="t3">
		<table width="100%" align="center" cellspacing="0" cellpadding="0">
			<tr>
				<td align="left">
					<div class="fl">
						<div class="pages">
							${ pagination }
						</div>
					</div>
				</td>
				<td align="right" style="padding-bottom: .2em">
					<s:url action="initAdd_reply" id="url">
						<s:param name="thread.id">${ thread.id }</s:param>
					</s:url>
					<a
						href="${ url }"><img
							src="images/yellow/reply.png" /> </a>
					<s:url action="initAdd_thread" id="url">
						<s:param name="board.id">${ board.id }</s:param>
					</s:url>
					<a
						href="${ url }"
						style="margin-left: .5em"><img src="images/yellow/post.png"
							id="td_post" /> </a>
				</td>
			</tr>
		</table>
	</div>

	<!-- Thread Start -->
	<div class="t" style="margin-bottom: 0px; border-bottom: 0">
		<table cellspacing="0" cellpadding="0" width="100%">
			<tr>
				<th class="h">
					<strong class="fl w"><b>回复主题:</b> ${ thread.title }</strong>
				</th>
			</tr>
		</table>
	</div>
	<s:form action="add_reply" method="post" namespace="/jingyanku">
		<s:hidden name="thread.id"></s:hidden>
		<s:hidden name="reply.title" value="Re: %{ thread.title}"></s:hidden>
		<div class="t t2">
			<table cellspacing="0" cellpadding="0" width="100%"
				style="table-layout: fixed; border-top: 0">
				<tr class="tr1">
					<th style="width: 20%" class="r_two" style="text-align: right">
						原帖主题
					</th>
					<th height="100%" class="r_one" valign="top" id="td_4900235"
						style="padding: 5px 15px 0 15px; border: 0; width: 80%; overflow: hidden">
						${ thread.title }
					</th>
				</tr>
				<tr class="tr1 r_one">
					<th style="width: 20%" class="r_two" style="text-align: right">
						回复内容
					</th>
					<th style="vertical-align: bottom; padding-left: 15px; border: 0">
						<s:textarea name="reply.content"
							cssStyle="width: 500px; height: 200px; "  theme="simple"></s:textarea>
						<br />
						<br />
						<s:submit value="提交" cssClass="btn" theme="simple"></s:submit>
					</th>
				</tr>
			</table>
		</div>
	</s:form>
</div>

<jsp:include flush="true" page="../footer.jsp" />
